<template>
  <div>
    <el-config-provider :locale="locale"> <router-view></router-view></el-config-provider>

  </div>
</template>

<script setup lang="ts">
import { provide, ref } from "vue";
import * as echarts from "echarts";
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import storage from "./utils/storage";
import router from "./router";
provide("echarts", echarts);
const locale = ref(zhCn)

const init = () => {
  if (storage.get('token')) {
    router.push('/a')
  }
}
init()
</script>

<style lang="scss">
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
</style>
